package
{
	import flash.geom.Point;
	
	import org.flixel.*;
	/**
	 * Basic class for a train animal. Has been extended into chickens and goats, but
	 * they could easily be reeled back in here. The booleans determine the state
	 * of the animal which can be used by the Train class.
	**/
	public class TrainAnimal extends FlxSprite
	{
		public var thrown:Boolean;
		public var returning:Boolean;
		public var dead:Boolean;
		public var collisions:int;
		
		public function TrainAnimal(START_X:int, START_Y:int, Image:Class)
		{
			super(START_X, START_Y, Image);
			thrown = false;
			returning = false;
			dead = false;
			collisions = 4;
		}
		
		public override function update():void
		{
			super.update();
		}
		
		public function updatePostion(position:Point):void {
			if (position != null) {
				this.x = position.x;
				this.y = position.y;
			}
		}
		
		/**
		 * Needed for animation purposes.
		 **/ 
		public function startThrowingAnim():void {
		}
		
		public function stopThrowingAnim():void {
		}
	}
}